package com.smartleanx.module.hrm.dal.mysql.examine.examineFlowPerformance;

import java.util.*;

import com.smartleanx.framework.common.pojo.PageResult;
import com.smartleanx.framework.mybatis.core.query.LambdaQueryWrapperX;
import com.smartleanx.framework.mybatis.core.mapper.BaseMapperX;
import com.smartleanx.module.hrm.dal.dataobject.examine.examineFlowPerformance.ExamineFlowPerformanceDO;
import org.apache.ibatis.annotations.Mapper;
import com.smartleanx.module.hrm.controller.admin.examine.examineFlowPerformance.vo.*;

/**
 * 考核流程中间 Mapper
 *
 * @author 
 */
@Mapper
public interface ExamineFlowPerformanceMapper extends BaseMapperX<ExamineFlowPerformanceDO> {

    default PageResult<ExamineFlowPerformanceDO> selectPage(ExamineFlowPerformancePageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<ExamineFlowPerformanceDO>()
                .eqIfPresent(ExamineFlowPerformanceDO::getConditionType, reqVO.getConditionType())
                .eqIfPresent(ExamineFlowPerformanceDO::getConditionValue, reqVO.getConditionValue())
                .eqIfPresent(ExamineFlowPerformanceDO::getExamineId, reqVO.getExamineId())
                .orderByDesc(ExamineFlowPerformanceDO::getId));
    }

}